package com.hosever.action;



public class GenericTest {
	public static void main(String[] args) {
		
	}
}

class Pair<T> {
	
	private T entity;
	
	public Pair(T entity) {
		this.entity = entity;
	}

	public static <T> Pair<T> makePair(Class<T> c1){
		try {
			return new Pair<T>(c1.newInstance());
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		return null;
	}

	public T getEntityt() {
		return entity;
	}

	public void setEntity(T entity) {
		this.entity = entity;
	}
	
	
}

